package com.ruoyi.system.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.system.service.IAttendanceService;

@RestController
@RequestMapping("/system/attendance")
public class AttendanceController {

    @Autowired
    private IAttendanceService attendanceService;

    /**
     * 获取打卡详情
     */
    @GetMapping("/queryPunchCardInfo")
    public AjaxResult queryPunchCardInfo(String userId) throws Exception {
        return AjaxResult.success(attendanceService.queryPunchCardInfo(userId));
    }

}
